package com.queue.cli.listener;

import java.util.EventObject;

public class MessageData extends EventObject {
    //消息内容
    private String message;

    public MessageData(Object consumer){
        this(consumer,null);
    }
    public MessageData(Object consumer,String message) {
        super(consumer);
        this.message = message;
    }

    /**
     * 返回消息内容
     * @return
     */
    public String getMessage() {
        return message;
    }
}
